package jee.boot.entity.activiti;

import jee.boot.common.annotation.Column;
import jee.boot.common.annotation.Table;

/**
 * 二进制数据表，存储通用的流程定义和流程资源。
 */
@Table(name = "act_ge_bytearray")
public class ActByteArray extends ActDataEntity<ActByteArray> {
    private static final long serialVersionUID = 1L;
    /**
     * 乐观锁
     */
    @Column(name = "REV_")
    protected String rev;
    /**
     * 部署的文件名称，mail.bpmn、mail.png 、mail.bpmn20.xml
     */
    @Column(name = "NAME_")
    private String name;
    /**
     * 部署的ID
     */
    @Column(name = "DEPLOYMENT_ID_", data = {"deployment.id", "deployment.name", "deployment.category"})
    private ActDeployment deployment;
    /**
     * 是否是引擎生成:
     * 0为用户生成
     * 1为Activiti生成
     */
    @Column(name = "GENERATED_")
    private int generated;

    public ActByteArray() {
    }

    public ActByteArray(String id) {
        super(id);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getGenerated() {
        return generated;
    }

    public void setGenerated(int generated) {
        this.generated = generated;
    }

    public String getRev() {
        return rev;
    }

    public void setRev(String rev) {
        this.rev = rev;
    }

    public ActDeployment getDeployment() {
        return deployment;
    }

    public void setDeployment(ActDeployment deployment) {
        this.deployment = deployment;
    }

}
